package org.jeecg.modules.xl.product.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.xl.order.mapper.XlCustomerOrdeMapper;
import org.jeecg.modules.xl.product.entity.XlProductCustomerPrice;
import org.jeecg.modules.xl.product.entity.XlProductInfo;

import java.util.List;
import java.util.Map;

/**
 * @Description: xl_product_info
 * @Author: jeecg-boot
 * @Date:   2024-10-18
 * @Version: V1.0
 */
public interface XlProductCustomerPriceMapper extends BaseMapper<XlProductCustomerPrice> {
    Page<XlProductInfo> queryListByPage(@Param("page") Page<XlProductInfo> page, @Param(Constants.WRAPPER) Wrapper<XlProductInfo> wrapper);

    //@MapKey("upc_code")
    int batchInsertOrUpdate(@Param("list") List<XlProductCustomerPrice> list);

    int insertOrUpdate(XlProductCustomerPrice record);

    int insertOrUpdateSelective(XlProductCustomerPrice record);

}
